public class Product42 {
    public static void main(String[] args) {
        Student student = new Student("张三",18,"男");
        Teacher teacher = new Teacher("李四",30,"女");
        showInfoTask(student,teacher);
    }

    private static void showInfoTask(Student student, Teacher teacher) {
        student.showInfo();
        teacher.showInfo();
    }
}
